
<!-- 社区活动 -->

<div id="calendar" class="box">
  <h4><span class="right">[<a href="<?php echo Q::ini('appini/site/calendar_url'); ?>">查看更多社区活动</a>]</span>近期社区活动</h4>
  <ul>
    <?php foreach ($activities as $activity): ?>
    <li class="clearfix">
      <div class="date">
        <?php if ($activity->schedule_end): echo $activity->schedule_begin . '<br />至<br />' . $activity->schedule_end; else: echo $activity->schedule_begin . '<br />-<br />不限时'; endif; ?>
      </div>

      <div class="subject">
        <h2><a href="<?php echo $activity->url; ?>"><?php echo h($activity->title); ?></a></h2>
        <p>
          <?php echo nl2br(h($activity->body)); ?>
          [<a href="<?php echo $activity->url; ?>">详情...</a>]
        </p>
      </div>
    </li>
    <?php endforeach; ?>
  </ul>
</div>

<!-- /社区活动 -->

